import hasClass from './hasClass';
import addClass from './addClass';
import removeClass from './removeClass';

export default function toggleClass(element, className){
    if(hasClass(element, className)){
        removeClass(element, className);
    }else{
        addClass(element, className);
    }
}